from django.urls import path
from . import views


urlpatterns = [
    path("type/<str:music_type>/", views.find_music_by_type, name="find_music_by_type"),
    path("singer/music/<str:singer_name>/", views.find_music_by_singer, name="find_music_by_singer"),
    path("singer/<str:singer_type>/<str:singer_gender>/", views.find_singer_by_type_and_gender, name="find_singer_by_type_and_gender"),
    path("singer/all/", views.query_all_singer, name="query_all_singer"),
    path("search/music/<str:music_pinshou>/", views.search_music_by_music_pinshou, name="search_music_by_music_pinshou"),
    path("search/singer/<str:singer_pinshou>/", views.search_music_by_singer_pinshou, name="search_music_by_singer_pinshou"),
    path("login/", views.login, name="session"),
    path("logout/", views.logout),
    path("playlist/order/<str:music_name>/<str:music_singer_name>/<str:music_duration>/", views.add_music_to_playlist, name="add_music_to_playlist"),
    path("playlist/upper/<str:music_name>/<str:music_singer_name>/<str:music_duration>/", views.move_music_in_playlist_up, name="move_music_in_playlist_up"),
    path("playlist/show/", views.show_playlist, name="show_playlist"),
    path("playlist/cut/<str:music_name>/<str:music_singer_name>/<str:music_duration>/", views.del_music_in_playlist, name="cut the music"),
    path("playlist/del/music/<str:music_name>/<str:music_singer_name>/<str:music_duration>/", views.del_music_in_playlist, name="del_music_in_playlist"),
    path("playlist/del/musics/all/", views.del_musics_in_playlist, name="del_musics_in_playlist"),
    path("play/<str:music_name>/<str:music_singer_name>/", views.play, name="play"),
]

